<!doctype html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- 上述3个meta标签*必须*放在最前面，任何其他内容都*必须*跟随其后！ -->


    <!-- Bootstrap -->
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/css/bootstrap.min.css" rel="stylesheet">

    <link rel="stylesheet" th:href="@{/css/me.css}">


</head>

<body class="mybody">

<div th:replace="~{commons::header('sort')}"></div>

<div class="container" style="background-color: aliceblue;display: flex;border: cyan solid 3px;border-radius: 15px;opacity: 0.7">
    <div th:each="tag:${tags}">
        <a th:text="${tag.getName()}" style="margin-left: 20px" th:href="@{/sortblog(tid=${tag.getId()})}" class="btn btn-primary btn-lg" role="button"></a>
    </div>

</div>

<div class="container" th:if="${#strings.equals(check,'true')}">
    <!--文章-->
    <div class="container" th:each="article:${articles}" style="margin-top: 1em">
        <div class="row"
             style="border: cyan solid 3px;box-shadow: 5px 5px 3px #888888;width: 100%;border-radius: 15px;background: aliceblue;opacity: 0.5">
            <div class="col-md-10 col-md-offset-1 ">
                <div class="container-fluid">
                    <div class="col-lg-8 col-md-8 col-xs-12">
                        <h2>
                            <a th:text="${article.getTitle()}"
                               th:href="@{/blog(id=${article.getId()})}"
                               style="color: black"></a>
                        </h2>
                        <small style="color: #888888">
                            <span class="glyphicon glyphicon-time" aria-hidden="true"></span>
                            <strong th:text="${#dates.format(article.getDate(),'yyyy-MM-dd HH:mm:ss')}"></strong>
                        </small>
                        <br>
                        <a th:href="@{/blog(id=${article.getId()})}" style="color: black">
                            <a style="text-decoration: none;color: black" th:text="${article.getContent()}" th:href="@{/blog(id=${article.getId()})}"></a>
                        </a>

                    </div>
                    <div class="col-lg-4 col-md-4 col-xs-12">
                        <img th:src="@{/img/1.jpg}" height="180px" style="margin-top: 15px">
                        <br>
                        <br>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<div th:replace="~{commons::footer}"></div>


<!-- jQuery (Bootstrap 的所有 JavaScript 插件都依赖 jQuery，所以必须放在前边) -->
<script src="https://cdn.jsdelivr.net/npm/jquery@1.12.4/dist/jquery.min.js"></script>
<!-- 加载 Bootstrap 的所有 JavaScript 插件。你也可以根据需要只加载单个插件。 -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@3.3.7/dist/js/bootstrap.min.js"></script>

</body>
</html>